Search_code abstraction fixed