Did changes to existing APIs and implemented DFS recursion search