Set the environment.