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.

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.

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.

However,  he voiced his intention to veto gun dealer licenses