Added functionality for dataTransfer.addElement