Added resource cache for resource management.