A Thief River Falls man will spend three years on probation after pleading guilty to two charges for attempting to solicit a teen for sex online.

Lane Allen Anderson, 23, pleaded guilty to two charges of electronic solicitation of a minor in March. Five similar charges were dismissed.

Anderson sent messages to a Facebook account that appeared to belong to a 15-year-old girl but was actually manned by a Thief River Falls police officer. On Dec. 22, Anderson began sending sexual messages to the girl and eventually sent her explicit photos and videos in the following weeks, an affidavit for his arrest said. Anderson knew and understood the girl was 15, according to the messages.

Anderson made plans to meet the girl at a laundromat on Jan. 10 and was, instead, met by officers and arrested. He told officers he knew his behavior was inappropriate and illegal, the affidavit said.

Anderson is required to register as a sex offender. Each felony charge held a maximum penalty of three years behind bars and a $5,000 fine.