Created cache service.
Fix a few things.