He admitted 19 offences