Moved the calling of printItems function in mapReduce callback.