WICHITA, Kan. — Newly released campaign finance reports show a late infusion of cash from mostly small donors helped Democrat James Thompson mount his surprisingly close congressional race as emboldened Democrats eye a 2018 rematch in the heavily Republican Kansas district.

The margin of victory for Republican Ron Estes in the Kansas 4th District special election on April 11 slid to only seven percentage points from a 31-point margin in November, when incumbent Mike Pompeo was running before he was appointed Trump’s CIA director.

Reports filed late Thursday show that as of May 1 Thompson raised a total of nearly $832,000, compared to about $494,000 Estes raised. Thompson spent about $562,000, while Estes spent about $421,000.

Thompson has about $127,000 left as he mounts his next race. Estes’ campaign had nearly $40,000 left.