Implemented basic search functions.