Made many changes, added the user ranks and now fixing the memory issues