Added debug out option