Add sweep_vec method to Offset module.