Renamed frequency to sample rate