Added debug mode to run.