Added classes for resource management.