Adding some logging to debug an issue