Updated atomic cyclic integer to perform modification before retrieval so the plain get method can always return values in range.