Search algorithm updated.