Made search recursive