Adding logging statements.