Added additional debugging messages.