Early version of Index encoding.