Added setter for min frequency. Added primitv caching for frequency determining.