Added environment variable to control output.