Added allResources method. This is not to be used externally.