Output calculation algorithms finished