Added method to return lastId for each resource