Update code to use 'Bit_Order and discriminant record for result