Added log messages to script. Added config changes.