Completed integration of the seach algorithm