Added even more debug logging to see what is happening