Added debug toggle