Refactoring; return updated resources (ids)