Adding functionality to traverse folder recursively