Update code for other graph viewing programs too.