Added support for multiple initially selected nodes