Took search.erl from develop, should not be changed now

'