Implemented finishing comaprasion pass and results output.