Write getAvailableBits