Added logger to ScriptEnvironment