Adding some logging statements.