Update to request function