Former Trump national security adviser Michael Flynn asked to withdraw his guilty plea late Tuesday, two weeks before his scheduled sentencing for lying to investigators in the Russia probe, a move that culminated his monthslong retreat from a cooperation agreement with federal prosecutors.

Flynn, a retired Army lieutenant general, accused the government of “bad faith” and “vindictiveness” in arguing that prosecutors broke their cooperation deal with him when they recommended earlier this month he receive a prison sentence of up to six months. The prosecutors’ recommendation marked a reversal of their past support for a probation-only sentence. Flynn admitted in 2017 that he lied to investigators about his contacts with Russia’s top diplomat to the U.S. during the latest transition.