Improving FieldGen and transaction