Added debug environment variable option