Added option for stripping the line of unused elements (default is true)