Generalized consecutiveDo to consecutivePairs