After using some future tech to put the Enterprise on the trail of the Orions (with the ship’s crew looking the other way lest they learn something they shouldn’t), Boimler urges Pike (and his “really great hair”) to find a peaceful solution. They do, though it means giving up some grain badly needed by some hungry colonists. And with that, they gain the ability to send Boimler back to his own time. The end.