Generate and format results.