Added more debugging messages.