CHICAGO (CBS)– Gov. Bruce Rauner Monday signed a bill to take away guns from those judged to pose a threat to themselves or others.

He signed the “Red Flag Bill” at Chicago’s Thompson Center late Monday morning before heading to downstate Dixon where he talked about safety at Dixon High School–two months after a gunman opened fire inside the school.

READ MORE: Man Shot And Killed In Dispute Outside West Chatham Home

Rauner appeared at the school alongside safety officer Mark Dallas, the school safety officer credited with preventing an attack at the high school in May. After he heard gunshots, Dallas ran toward the gunman and stopped him before he could harm students.

The “Red Flag Bill” was crafted in response to recent mass shootings at a high school in Parkland, Fla., and at the Capital Gazette newspaper in Annapolis, Md.

READ MORE: City Was Warned About Thousands of Corroding Light Poles But Failed to Fix Many, CBS 2 Investigation Finds

The legislation allows gun violence victims to seek an order of protection to confiscate firearms from someone deemed to pose a danger to themselves or others. A judge would have up to two weeks to take away any firearms and revoke an existing FOID card for up to six months.

“We want to protect individuals’ rights to gun ownership but for those who are deemed to be dangerous, not let them have guns,” Rauner said.

Rep. Peter Breen (R-Hinsdale) said: “This is not going to be used a a lot., but when it does, it will be absolutely critical.”

Rauner also signed a law creating a 72-hour waiting period before firearm purchases.

MORE NEWS: Chicago Weather: Rain Arrives Sunday

However,  he voiced his intention to veto gun dealer licenses