Control of the sequence of chambers filled or emptied