Added caching templates. Implement some feautures.