Updated to include reference to root elements