Added code to read from environment variable.