Added search code.