Added some debug messages