Added debug messages