Removed dupliation of the request_resource code