Smart manufacturing: A dynamic approach to safety and security