Made graph work