(AP) — New Yorkers under age 21 will be prohibited from buying semiautomatic rifles under a new law signed by Gov. Kathy Hochul.

The Democrat signed 10 gun-related bills on Monday as the state becomes one of the first to enact legislation following a wave of deadly mass shootings.

Download the free KHON2 app for iOS or Android to stay informed on the latest news

One law will require microstamping in new firearms, which could help law enforcement solve gun-related crimes.

Another revised the state’s “red flag” law, which allows courts to temporarily take away guns from people who might be a threat to themselves or others.

“In New York, we are taking bold, strong action. We’re tightening red flag laws to keep guns away from dangerous people,” Hochul said at a press conference in the Bronx.

New York’s Legislature passed the bills last week, pushing the changes through after a pair of mass shootings involving 18-year-old gunmen using semiautomatic rifles. Ten Black people died in a racist attack on a Buffalo supermarket on May 14. A Texas school shooting took the lives of 19 children and two teachers 10 days later.

The governor said New York will continue to invest in the prevention of gun-related crimes by partnering with local communities and continuing to strengthen laws by putting pressure on Congress.

Check out what’s going on around the nation on our National News page

“Today is the start, and it’s not the end,” said Hochul. “Thoughts and prayers won’t fix this but taking strong action will. We will do that in the name of the lives that have been lost, for the parents who will no longer see their children stepping off the school bus.”