Changed the order of flag codes.