Added graphing functionality.