Moved environment variables to the top. Added a few additional logging statements.
Updated console message