Adding BitFieldValue function