Take 'root' property into account