Started work on the cache and output

Signed-off-by: Cade <me@cade.jp>