Updated file tree implementation.