Added a mess of methods to environment object