Added debug flag