Added debug logging messages