Functions of Rotary Valves