add getFrequency() wrapper method and isContiguous() check.