Finalised preliminary version of results formatter.