Added environment functions