Sorted out flag order and bit strings (little endian).