Added some randomness to the environment construction.