Add some logging to check logic