Removed unnecessary update of offset parameter.