Added more debugging messages