Added caching variables.