Added retrieve from cache functions.