Add load_request function