Adding some logging for debugging