Replace all the walk code with ftw()