Added more logging, because of not found bugs.