Make UI optional
Constrain search space by distance heuristic
Intercept hard shutdown on CTRL-C