Adding the first 5 values to compute offset