Added bitstring functions