Added feature to the trajectory problem allowing continuation when
simultaneous events are encountered.