Added datasource methods to resource