Modified cacher function