Included graph functionality. DEBUG needed