Factor out parse-output function
Add commit messages etc. to display