Added code for the environment