Added debug option