Refactored to better suit ScalableBloomFilter