Changed mark to flag