Added code to print results to screen