Partially ported Requester.pm to fix UT errors.