Revised getfreq structure