Added debug log messages.