Fixed bug in cache system, added forgotten file