Improving script writing technniques
Fixed log messages