Add resource management support