Added search function.