Changed flag order