Same results; simpler logic.