Working with consecutive terms