Added print results function