Added support for shared resources