Added extracting the file from an environment variable.