Fixed the program in example/src/generate_root_fids.cxx. It now properly changes the frequency each time.