Added debug messages.