A method for operating an engine in a vehicle, the engine having at least
a cylinder, the method comprising generating engine braking torque to
stop rotation of the engine in a desired range by opening and closing at
least an electrically actuated valve of the cylinder more than once
during a cycle of the cylinder.