Moved the password generator into the module