Forgot to include meanFreq variables. Corrected some typos