ENH: Added better debugging messages.