Adding catches for undefined cache locations.