Implemented basic resource management