Rep. Blake Farenthold, under fire for a harassment scandal, abruptly resigned from Congress on Friday.

The three-term Texas Republican, who settled a sex harassment claim with taxpayer funds, said in a statement that it was time for him to “move along.”

He had originally planned to serve out the remainder of his term. The statement said his resignation was in effect at 5 p.m. Friday.

“I know in my heart it’s time for me to move along and look for new ways to serve,” the statement read.

Politico revealed in December that the congressman told an aide he had “sexual fantasies” and “wet dreams” about her. Her lawsuit was settled for $84,000.

Farenthold said at the time he could not confirm or deny the report.

Texas governor Greg Abbott must set up a special election to fill Farenthold’s seat.