added debug log.