Added $root_dir thingy.