**Exhibit 10.22****AMENDED AND RESTATED REVOLVING LINE OF CREDIT NOTE**   $4,500,000.00 October 17, 20071. FOR VALUE RECEIVED, **CENTRAL IOWA ENERGY, LLC**, an Iowa limited liability company (the“Borrower”), hereby promises to pay to the order of **F & M Bank-Iowa**, a bank chartered under thelaws of Iowa (the “Lender”), the principal sum of Four Million Five Hundred Thousand and No/100ths($,500,000.00) Dollars, or so much thereof as may be advanced to, or for the benefit of, theBorrower and be outstanding, with interest thereon, to be computed on each advance from the date ofits disbursement as set forth herein pursuant to that certain Amended and Restated Master LoanAgreement of even date herewith by and between the Lender and the Borrower (as it may be amended,modified, supplemented, extended or restated from time to time, the **“MLA”**), and pursuant to thatcertain Amended and Restated Third Supplement to the MLA, dated as of even date herewith, by andbetween the Lender and the Borrower (as it may be amended, modified, supplemented, extended orrestated from time to time, the **“Third Supplement”**), and which remains unpaid, in lawful money ofthe United States and immediately available funds. This Amended and Restated Revolving Line ofCredit Note (the “**Note**”) is issued pursuant to the terms and provisions of the MLA and the ThirdSupplement and is entitled to all of the benefits provided for in the MLA and the Third Supplement.All capitalized terms used and not defined herein shall have the meanings assigned to them in theMLA and the Third Supplement.2. The outstanding principal balance of this Note shall bear interest at a variable ratedetermined by Lender to be three and one-quarter percent (3.25%) above the LIBOR Rate in effect onthe date of the first Advance pursuant to this Note. Notwithstanding the foregoing, the rate ofinterest under this Note shall be adjusted by Lender pursuant to the provisions of the MLA, theThird Supplement and this Note.3. The “LIBOR Rate” means the rate (rounded upward to the nearest sixteenth and adjusted forreserves required on Eurocurrency Liabilities (as hereinafter defined) for banks subject to FRBRegulation D (as hereinafter defined) or required by any other federal law or regulation, quoted bythe British Bankers Association (the “BBA”) at 11:00 a.m. London time two Banking Days (ashereinafter defined) before the commencement of the Interest Period for the offering of U.S. Dollardeposits in the London interbank market for an Interest Period of one month, as published byBloomberg or another major information vendor listed on BBA’s official website. “**Banking Day**”shall mean a day on which Lender is open for business, dealings in U.S. dollar deposits are beingcarried out in the London interbank market, and banks are open for business in New York City andLondon, England. “**Eurocurrency Liabilities**” has the meaning as set forth in FRB Regulation D.“**FRB Regulation D**” means Regulation D as promulgated by the Board of Governors of the FederalReserve System, 12 CFR Part 204, as amended from time to time4. The rate of interest due hereunder shall initially be determined as of the AvailabilityDate and shall thereafter be adjusted, as and when, the LIBOR Rate changes. All such adjustmentsto the rate of interest shall be made and become effective as of the first day of the monthfollowing the date of any change in the LIBOR Rate and shall remain in effect until and includingthe day immediately preceding the next such adjustment (each such day hereinafter being referred toas an “**Adjustment Date**”). All such adjustments to said rate shall be made and become effective asof the Adjustment Date, and said rate as adjusted shall remain in effect until and including theday immediately preceding the next Adjustment Date. Interest hereunder shall be computed on thebasis of a year of three hundred sixty-five or three hundred sixty-six (365 or 366) days, butcharged for actual days principal is outstanding.
 
 

 
5. Notwithstanding anything to the contrary in the MLA, the Third Supplement and this Note, noadvances will be made to the Borrower under this Note until the Availability Date as specified inthe Third Supplement.6. Beginning on the first (1st) day of the first calendar month following theAvailability Date and continuing on the first (1st) day of each succeeding monththereafter until the Revolving Line of Credit Loan Maturity Date, the Borrower shall make monthlypayments of accrued interest.7. The outstanding principal balance hereof, together with all accrued interest, if not paidsooner, shall be due and payable in full on October 14, 2008 (the “Revolving Line of Credit LoanMaturity Date”).8. All payments and prepayments shall, at the option of the Lender, be applied first to anycosts of collection, second to any late charges, third to accrued interest and the remainderthereof to principal.9. This Note may be prepaid at any time, at the option of the Borrower, either in whole or inpart, subject to the obligation of the Borrower to compensate the Lender for any loss, cost orexpense as a result of such prepayment as set forth in the MLA and the Third Supplement.Notwithstanding anything to the contrary herein, this Note shall be subject to the prepaymentpremium provided for in Section 2.10 of the MLA. This Note is subject to mandatory prepayment, atthe option of the Lender, as provided in the MLA and the Third Supplement.10. In addition to the rights and remedies set forth in the MLA and the Third Supplement: (i)if the Borrower fails to make any payment to Lender when due under this Note, then at Lender’soption in each instance, such obligation or payment shall bear interest from the date due to thedate paid at 2% per annum in excess of the rate of interest that would otherwise be applicable tosuch obligation or payment under this Note; (ii) upon the occurrence and during the continuance ofan Event of Default beyond any applicable cure period, if any, at Lender’s option in each instance,the unpaid balances under this Note shall bear interest from the date of the Event of Default orsuch later date as Lender shall elect at 2% per annum in excess of the rate(s) of interest thatwould otherwise be in effect under the terms of this Note; (iii) after the Revolving Loan MaturityDate, whether by reason of acceleration or otherwise, the unpaid principal balance of this Note(including without limitation, principal, interest, fees and expenses) shall automatically bearinterest at 2% per annum in excess of the rate of interest that would otherwise be in effect underthis Note. Interest payable at the Default Rate shall be payable from time to time on demand or,if not sooner demanded, on the last day of each calendar month.11. If the Borrower fails to make any payment to Lender within ten (10) days of the due datethereof, the Borrower shall pay, in addition to such amount, a late charge equal to five percent(5%) of the amount of such payment.12. This Note is secured by, among other instruments, a Amended and RestatedMortgage,Security Agreement and Financing Statement of even date herewith (the “Mortgage”) covering variousparcels of real property, fixtures, and personal property located in Jasper County, Iowa. In theevent any such security is found to be invalid for whatever reason, such invalidity shallconstitute an event of default hereunder. All of the agreements, conditions, covenants,provisions, and stipulations contained in the Mortgage, or any instrument securing this Note arehereby made apart of this Note to the same extent and with the same force and effect as if they were fully setforth herein. It is agreed that time is of the essence of this Note.
 
 

 
13. Upon the occurrence at any time of an Event of Default or at any time thereafter, theoutstanding principal balance hereof plus accrued interest hereon plus all other amounts duehereunder shall, at the option of the Lender, be immediately due and payable, without notice ordemand and Lender shall be entitled to exercise all remedies provided in this Note, the MLA, theThird Supplement, or any of the Loan Documents.14. Upon, the occurrence at any time of an Event of Default or at any time thereafter, theLender shall have the right to set off any and all amounts due hereunder by the Borrower to theLender against any indebtedness or obligation of the Lender to the Borrower.15. The Borrower promises to pay all reasonable costs of collection of this Note, including,but not limited to, reasonable attorneys’ fees paid or incurred by the Lender on account of suchcollection, whether or not suit is filed with respect thereto and whether or not such costs arepaid or incurred, or to be paid or incurred, prior to or after the entry of judgment.16. Demand, presentment, protest and notice of nonpayment and dishonor of this Note arehereby waived.17. This Note shall be governed by and construed in accordance with the laws of the State ofIowa.18. The Borrower hereby irrevocably submits to the jurisdiction of any Iowa state court orfederal court over any action or proceeding arising out of or relating to this Note, the MLA andany instrument, agreement or document related hereto or thereto, and the Borrower herebyirrevocably agrees that all claims in respect of such action or proceeding may be heard anddetermined in such Iowa state or federal court. The Borrower hereby irrevocably waives, to thefullest extent it may effectively do so, the defense of an inconvenient forum to the maintenance ofsuch action or proceeding. Nothing in this Note shall affect the right of the Lender to bring anyaction or proceeding against the Borrower or its property in the courts of any other jurisdictionto the extent permitted by law.      CENTRAL IOWA ENERGY, LLC, an Iowalimited liability company