Pass on keep_environment parameter as boolean.