Add frequency API