Implemented basic search function.