Better way to make palette.