Remove useless attributes
Add depth first search algorithm