Move all the flags to the top for uniformity