Added some useful debug messages