Added simple check for ensuring the environment variable is set