Added third option to set the request (setRequest).