Modified the update method of the function candidates.