Added debug flag to make easier to go into install mode.