Added some logging to debug an issue