Refactoring Code
xcuserstate