Fixed untested code and added default settings for the logger.