BOSTON (AP) — A California man charged with embezzling more than $1.2 million from his Massachusetts-based employer over a 16-year period has agreed to plead guilty, federal prosecutors said.

Darrell Pike, 56, of Hesperia, California, embezzled the money from 2005 until 2021 while working as general manager of the California subsidiary of a Wilmington-based supply and service company, federal prosecutors in Boston said Monday.

READ MORE: 'We Want To Take An Innovated Approach': Sacramento City Pilot Project Sets Aside $1M For Community To Spend

He did so by submitting fraudulent invoices to his employer on behalf of a fake temporary staffing company for staffing services purportedly provided at the California location, adding the approving initials of company personnel to the invoices without their knowledge or consent, prosecutors alleged. The money was deposited into a bank account he controlled.

READ MORE: 'I Cannot Safely Return To Work': West Campus Vice Principal Dr. Elysse Versher Resigns, Citing History Of Racial And Sexual Harassment

“Mr. Pike admitted his wrongdoing when he was initially confronted by his employer, and he did so again when subsequently questioned by the FBI,” his attorney, Brian Gurwitz, said in a statement. “He deeply regrets hurting the colleagues who trusted him during his career, and the pain this revelation has caused to his family.”

MORE NEWS: 'The Saddest Thing I've Ever Seen': Community Shaken After 3-Year-Old Dies In Arden-Arcade Fourplex Fire

Pike agreed to plead guilty to wire fraud. A date for the plea hearing has not been scheduled.