Support "leaves" and "roots"