added lru functionality.