Added debug flag to run