Added logging config and log statements.