Update logic (from review).