Add palette output logic and correct a few related node names.