Successfully gets the environment variable