#1: Added logging to Main class.