Fixed add action - added functionality to add root element.