The national popular vote bill passed the Colorado House 34-29 Thursday and is headed to Gov. Jared Polis’ desk.

If the governor signs it, Colorado will join a multistate effort to change how the country elects its president.

The effort is called the national popular vote interstate compact, and a bill that would pledge Colorado’s nine Electoral College votes to whomever wins the national popular vote for president passed its second reading in the state House on Wednesday night. The bill, which already passed the Senate, will likely be on Polis’ desk by the end of the week.

The Democratic governor is expected to sign it.