Some debug messages are added.