Added support for setting the graph scope