Added functionality for sequence next value obtaining