Search Function

Working but not yet finished.