Fixed factory to add resource, starting to use real data