The frequency is now calculated and printed in the GUI.