Added set_fps function