Added stdout function to output results to STDOUT