Added debugging messages.