VarBit class refactored