Updating script w.r.t. cache data calculation.