Adding palette lookup