A federal judge sentenced a U.S. Postal worker to two years of probation after she was caught stealing cash and gift cards from her Parker mail route.

U.S. District Judge R. Brooke Jackson also ordered Nicole Townsend to pay $425 in restitution during Tuesday’s sentencing hearing. She had faced up to 5 years in prison.

Townsend had been opening and stealing mail containing cash or gift cards for an unknown period of time ending on April 6, 2016.

She stole a $250 Walmart gift card in early 2016 and used $237.73 at a Parker Walmart store, court records say.

On March 15, 2016, investigators sent test mail in the defendant’s postal route. Each of the cards contained $10 gift cards from Safeway and Target. Townsend stole and used both of them.

On April 16, 2016, investigators sent two more letters containing $20 in cash and a $10 gift card. The letters contained transmitters that signaled investigators when they were opened.

Townsend opened both letters in her postal vehicle. Investigators arrested her and she soon confessed to stealing the gift cards, court records say.