The Maryland Senate approved a comprehensive gun control bill that includes a ban on assault weapons and fingerprinting for prospective handgun buyers.

The Senate passed the bill 28-19 and sent it on to the House of Delegates, according to Reuters.

Democratic Governor Martin O'Malley proposed the measure in the wake of the Newtown, Connecticut, school massacre in December in which 20 children and six adults died. 

The bill has a licensing requirement for handgun buyers to submit fingerprints to state police. Gun buyers also have to complete an eight-hour safety training course and undergo a more rigorous background check before purchasing a weapon.

The measure also bars anyone who has been involuntarily committed due to mental illness from possessing a firearm. It also bans assault weapons and limits magazine sizes.