How A Rotary Valve Works