Fleshing out the logic.