Added extra option to output the positions of the frequencies for the output file