Fixed the frequency stuff