Pulled PrintResult() up to main function