Added more logging messages.