Add palette implementation