Made the graph dynamic and shit