Add sweep_path method to Offset module.