Small change to activity saving logic.