Added fold method to Objective.