The function PlotTrajFreq was added