Added environment for functions