Implementation search algorithm (with stubs)