Started on Palette refactor.