Completed isConsecutive