Added debug messages for parser