Added more useful debug messages