Closed graph functionality added.