Added function printResults