Added log adding and reading. Removed cache for sanity