Refactor to split out search & dumb search into classes.
Allow running in different folders.