NEW YORK — President Donald Trump’s estranged former lawyer is acknowledging that he paid a technology company to rig Trump’s standing in two online polls.

Michael Cohen tweeted Thursday that “what I did was at the direction of and for the sole benefit of” Trump.

As for the @WSJ article on poll rigging, what I did was at the direction of and for the sole benefit of @realDonaldTrump @POTUS. I truly regret my blind loyalty to a man who doesn’t deserve it. — Michael Cohen (@MichaelCohen212) January 17, 2019

Technology company owner John Gauger told The Wall Street Journal that Cohen promised him $50,000 for work including using computers to enter fake votes for Trump in a 2014 CNBC poll asking people to identify top business leaders and a 2015 poll of potential presidential candidates. Gauger says Cohen paid him about a quarter of the money in cash, then stiffed him on the rest.

The Trump Organization later paid a $50,000 reimbursement to Cohen. It didn’t immediately respond to a request for comment.

READ MORE: Michael Cohen to testify publicly before Congress in February