Adds graph stuff