Which of the following components controls the opening and closing of the valves in an engine?

A. Crankshaft journals
B. Rocker arms
C. Push rod
D. Camshaft lobes