Add root as a configurable param, with passing tests.