Got graphs working