Functional first version (tested on autoincrementer "flat" application)