Simulating the environment