Add search lookahead. Fixes #3