Fixed the lru to function properly instead of the old shit pile it was.