Martin Gerald Foley pleaded guilty to 20 charges out of a total of 193 charges first brought against him.