Update awake logic.