Limit max iterations in heur_init. Add graph printing.