Split print_qstat into two separate functions, for an attempt to improve what happens when number of jobs changes.