Overwrote with Justin's new version
rename cache variable