CHEYENNE, Wyo. (AP) - A woman accused of robbing a bank so she could go back to prison has waived her preliminary hearing and requested to remain in custody.

During a short hearing Tuesday, U.S. Magistrate Kelly Rankin granted both requests by 59-year-old Linda Thompson.

A plea hearing was being scheduled for Wednesday.

Authorities said Thompson was released in June from prison in Wilsonville, Oregon, where she had been sentenced on a second-degree robbery conviction. Thompson told authorities at the time that she didn't want to be released.

She was arrested July 27 after a U.S. Bank branch in Cheyenne was robbed by a woman who then tossed the money into the air outside and offered some to people passing by.

Police say Thompson told investigators she wanted to go back to prison.