Fines will be collected by localities, according to the new legislation.