'Adds steps to the end of the sequence.'

def _append_steps(self, num_steps):

    if (self._events and (self._events[(-1)].event_type == PerformanceEvent.TIME_SHIFT) and (self._events[(-1)].event_value < MAX_SHIFT_STEPS)):
        added_steps = min(num_steps, (MAX_SHIFT_STEPS - self._events[(-1)].event_value))
        self._events[(-1)] = PerformanceEvent(PerformanceEvent.TIME_SHIFT, (self._events[(-1)].event_value + added_steps))
        num_steps -= added_steps
    while (num_steps >= MAX_SHIFT_STEPS):
        self._events.append(PerformanceEvent(event_type=PerformanceEvent.TIME_SHIFT, event_value=MAX_SHIFT_STEPS))
        num_steps -= MAX_SHIFT_STEPS
    if (num_steps > 0):
        self._events.append(PerformanceEvent(event_type=PerformanceEvent.TIME_SHIFT, event_value=num_steps))
