Added more debug messages.