Controlling the valve overlap