Adding some logging statements