Changed standard listener to StdOutReporter and improved the coding