Revert changes made to setFunction.