Add automatic user add script. heavy refactoring started.