Added a debug log.