Added CEncode::GetIndex