Added method to increment sequence index.