Moved the result parsing and output graph generation into a different module