Improved main scripts + module 'user' works correctly