Add support for resource models