Added palette api