Update Main Function To userManager

can deal with multiuser request at same time.

Need to Test For Memory cost and Speed