Fixed so that the script also exports graphs!