Adding new logging message.
Properly check existing environment variable.