Add graph handler