Added support for inherting/logging an environment variable