What is the Function of a Compensator in a Pipeline