Bit representation being painful