<p>A valvetrain control arrangement for an internal combustion engine. A fluid-working machine (1) has working chambers (3) of cyclically varying volume, each connected to a piston actuator (4) which is capable of moving an intake or exhaust valve in the internal combustion engine. The engine crankshaft (2) drives a crankshaft of the fluid-working machine at the same speed as the engine. Each working chamber (3) is linked to a low-pressure manifold (7) by a venting valve (6), the venting valve being normally open but electromagnetically closable by a signal from an electronic sequencing means (8) which operates in timed relationship to the engine crankshaft phase.</p>