Added environment variable debugging