Making sure the environment is set correctly