Added debug option.