Working version of app. Missing functionality to properly update the cache