SAN JOSE, Costa Rica — A Costa Rican court on Friday ordered an ex-priest facing sexual abuse charges held in custody for six months while awaiting trial.

Mauricio Víquez was extradited back from Mexico after he fled Costa Rica, where the statute of limitations was running out on abuse charges facing him.

Viquez allegedly abused two teenagers in 2003. At the time in Costa Rica, such charges generally couldn’t be pursued 10 years after a complainant’s 18th birthday.

The case led Costa Rica to lengthen the statute of limitations on sex crimes from 10 to 25 years.

Viquez was expelled from the priesthood by the Roman Catholic Church. There are other abuse accusations against him.