Improve useram function