This could be done in the request constructor instead.