Ohio Democrat Tim Ryan said in an interview Tuesday night that if he’s elected House minority leader next week and Democrats don’t take back the majority in 2018, he won’t run again for a second term.

“This is about winning. If we’re not winning then we shouldn’t keep people in their jobs,” the seven-term congressman told Roll Call, explaining his decision to challenge Nancy Pelosi for her long-held leadership post. “If we don’t win the House back in two years, I won’t run. That just needs to be the standard.”

House Democrats are coming off four straight election losses; they lost their majority in 2010 and failed to recapture it in 2012, 2014 and 2016. This year, widely expected gains didn’t materialize, and Republicans will have at least a 239-194 edge in the new Congress.

“If you want to boil it down, it’s no fun,” Ryan said. “It’s no fun losing. It’s no fun being in the minority.”

House Democrats will elect their leadership team by secret ballot on Nov. 30.