Set the environment