Added functionality to exclude elements from the export