Bit field parsing