Basic encoding setup