Fixed read and print results functions