Chain's logic.