Added setEnv stuff.