Importing and exporting switches + palette exporting support.