We need to store final_offset and final_limit