Added $root, $filename, $filebasename