main() now prints final information out on a single line if possible.