Changed Process to a generator which sets IsProcessed to true