Add support for nested resources