Dick's Sporting Goods will no longer sell assault-style rifles, high-capacity magazines or guns to people under the age of 21, according to chief executive Edward W. Stack.

Stack appeared on Good Morning America on Wednesday morning, two weeks after the mass shooting in Parkland, Fla., which killed 17 people and reinvigorated a national debate over gun control. The alleged shooter, Nikolas Cruz, bought a shotgun from a Dick's store in November 2017, Stack said during the television interview, and though the shotgun was not the weapon used in the massacre, he said his company was moved to act.

"We did everything by the book, and we did everything that the law required, and he was still able to buy a gun," Stack told GMA's George Stephanopoulous.