Added some debug logging
Added some debug logging