New partisan composition for state legislatures has emerged as the last remaining undecided races are settled across states.

Democrats appeared to have secured a net gain of 169 House seats nationwide as of Thursday afternoon, according to totals compiled by the National Conference of State Legislatures. The bulk of these victories came in the 400-seat New Hampshire House, where Democrats swept into power with more than 100 new members elected.

Eight House races in Arizona, New Mexico, New York and North Dakota were considered undecided on Thursday.

State House Results

State Senate Results

Victories were fairly evenly divided in state senates, with Democrats picking up a net total of 12 seats. The party added 10 seats in Minnesota, six in New Hampshire and five in Illinois.

Republicans gained six seats each in Tennessee and Arkansas.

Three races had yet to be decided Thursday afternoon, according to NCSL.