Add function to get index of data at max for freq