Add method to set a field by its index.