Simplify the API
Simpler API, only support for resources