Added search API and functionality