Corrections made
Cache decorator rewritten