Fixed issue building setting cache, removed some debug code.