Format the output. Fixes #4