Add some logging for debugging