Added a variable to do several passes. Finished ouput compare.