Create depthfirst