Logic for advancing was reversed