Trying to get frequency to work