Use term flowmap instead of spiral tree in the code