Uses methods to check cache.