Added a resourcecacher.