Added ability to change root