Added search function to the shell