Updated output to properly allow for multiple graphs