Fixed bug in caching.
Changes in caching for more modularity in install functions.
Bug in caching.