He was convicted at Glasgow Sheriff Court.