WIP: fixed method Generation::search.