Handling the environment