Handle multiple graphs… Some issues left to fix