Updated the main so that we can use the a cachemanager that is already present.