Adding some logging