WASHINGTON (AP) — The man accused of placing two pipe bombs in Washington on the eve of the Jan. 6, 2021, riot at the U.S. Capitol told investigators after his arrest that he believed someone needed to “speak up” for people who believed the 2020 election was stolen and that he wanted to target the country’s political parties because they were “in charge,” prosecutors said Sunday.

The allegations were laid out in a Justice Department memo arguing that Brian J. Cole Jr., who was arrested earlier this month on charges of placing pipe bombs outside the headquarters of the Democratic and Republican national committees, should remain locked up while the case moves forward.

The memo provides the most detailed government account of statements Cole is alleged to have made to investigators and points to evidence, including bomb-making components found at his home after his arrest, that officials say connects him to the act. The homemade bombs did not detonate and were discovered Jan. 6, the afternoon that rioters supporting President Donald Trump stormed the Capitol in an effort to halt the certification of his election loss to Democrat Joe Biden.

Cole denied to investigators that his actions were connected to Congress or the events of Jan. 6, the memo says. But after initially disputing that he had any involvement in the pipe bombs, prosecutors say, he confessed to placing them outside the RNC and DNC and acknowledged feeling disillusioned by the 2020 election, fed up with both political parties and sympathetic to claims by Trump and some of his allies that the contest had been stolen.