First pass of frequency calculation and resque