Added an environment variable that indicates non-interactive mode