Add some debugging messages. ERROR DETECTED.