`$rootel` at end seems wrong. I'll fix.