Added debug messages (some more).