Added search and sort method