Generalized autoIncrement