Changed interface to use bitset