Added ability to change root element and add custom attributes