Safety management in production