European Union countries have agreed on new measures to tighten gun controls in the wake of the deadly attacks in Paris and Brussels.

They include stricter rules on buying and owning automatic weapons, steps to stop deactivated guns being put back into use, and better tracing of trafficked weapons.

Dutch Justice Minister Ard van der Steur said Friday the result will be that "the risk of legal firearms finding their way to the illegal market is reduced."

The measures set minimum standards for EU nations to respect but do not stop them from putting tougher laws into place.

Countries with many hunters, like the Czech Republic, resisted the move.

EU lawmakers must endorse the rules before they come into force.