Added more detailed debugging messages