[Heuristic] Update function