containerRoot is no longer a global variable.