Adapt search command to traverser.
main() function refactored.