Added debug messages to see what is happening.