Added environment parameter