Added support for retrieving resources from the resource server.