Added search text function