RIVERHEAD - A Riverhead physician pleaded guilty Friday to writing thousands of illegal prescriptions.

Michael Troyan pleaded guilty to conspiring to illegally distribute the painkiller oxycodone. Prosecutors say he wrote fake prescriptions for 60,000 oxycodone pills in exchange for cash.

Troyan faces up to 20 years in prison.

One of Troyan's co-conspirators is former Southampton Town Councilman Bradley Bender, who is scheduled to be sentenced next week.