Graph functionality added.