Added function to get all resources of given type.