WIP: search direction now work in Generation::search.