Republicans on the House Judiciary Committee turned a Democratic request for documents related to President Donald Trump’s firing of then-FBI Director James B. Comey on its head, making it a different kind of treasure hunt.

On a 16-13 vote, the panel on Wednesday approved a substitute amendment offered by GOP Rep. Matt Gaetz of Florida that would ask the Justice Department for documents related to Comey’s handling of the FBI investigation into Hillary Clinton’s use of a private email server and other aspects of Comey’s tenure.

Democrats cried foul.

“Incredible: GOP are trying to hijack my bill on the FBI Director’s firing. They’re trying to make this about Hillary Clinton,” Rep. Pramila Jayapal, D-Wash., said on Twitter.