API for resources again.