The defendant appeared at Wrexham Magistrates Court for sentence