First draft of search part