Fixed a bug. Added graph for results.