He admitted to 18 charges and has been in court for another six