Added a cleatAll function to CommonObjective