Added load_user function.