Added ranges to the frequency peak fit functions, since they were complaining about not having data.