Implemented caching methods.