**EXHIBIT 10.39**     FOURTH AMENDMENT TO CONSTRUCTION LOAN AGREEMENTThis Fourth Amendment to Construction Loan Agreement is dated as of the 11th day ofDecember, 2007, and is by and between **RED TRAIL ENERGY, LLC**, a North Dakota limited liabilitycompany (“BORROWER”), and **FIRST NATIONAL BANK OF OMAHA**(“BANK”), a national banking associationestablished at Omaha, Nebraska.WHEREAS, the BANK and BORROWER executed a written Construction Loan Agreement dated as ofDecember 16, 2005 (“AGREEMENT”).Now, Therefore, in consideration of the AGREEMENT, and their mutual promises made herein, BANK andBORROWER agree as follows:     1. Terms which are typed herein as all capitalized words and are not defined herein shall havesame meanings as when described in the AGREEMENT.     2. On April 16, 2007, pursuant to Section 2.5 of the AGREEMENT, BORROWER executed anddelivered to BANK its VARIABLE RATE NOTE, in the principal amount of $17,605,870.00; itsLONG TERM REVOLVING NOTE, in the principal amount of $10,000,000.00; and its FIXED RATENOTE, in the principal amount of $27,605,870.00. BORROWER has requested BANK to permitthe replacement of the VARIABLE RATE NOTE in order to reduce the amount of borrowed fundssubject to variable rates and to increase the portion of the OBLIGATIONS represented byfixed rate financing. As the result, on execution of this amendment, BORROWER will deliver areplacement of the VARIABLE RATE NOTE, with such replacement having the principal amount of$6,777,887.23, and a new note (“2007 FIXED RATE NOTE”) having a principal amount of$10,000,000.00.     3. Effective immediately, Section 1.24 of the AGREEMENT is amended to read:     1.24 “LOAN TERMINATION DATE” means the earliest to occur of the following: (i) as to theREVOLVING NOTE, July 17, 2008, as to FIXED RATE NOTE, 2007 FIXED RATE NOTE, VARIABLE RATENOTE and as to LONG TERM REVOLVING NOTE, April 16, 2012, (ii) the date the OBLIGATIONS areaccelerated pursuant to this AGREEMENT, and (iii) the date BANK has received (a) notice inwriting from BORROWER of BORROWER’s election to terminate this AGREEMENT and (b)indefeasible payment in full of the OBLIGATIONS.     4. Effective immediately, Section 2.5 of the AGREEMENT is amended to read:     2.5 TERM LOAN. The existing balance on the CONSTRUCTION LOAN, including any advancemade to increase WORKING CAPITAL, as of COMPLETION DATE will be restated and said balancewill be paid by four promissory notes (“TERM NOTES”), hereafter called “FIXED RATENOTE”,“2007 FIXED RATE NOTE”, “VARIABLE RATE NOTE”, and “LONG TERM REVOLVING NOTE”, in form
 Page 1 of 4 

 
mutually acceptable to BANK and BORROWER. The TERM NOTES evidence “TERM LOANS”. Payments onsuch TERM NOTES shall be as follows:     On the sixteenth day of every third month, commencing three months after COMPLETION DATE,BORROWER shall pay to BANK the scheduled principal payment shown in Schedule I, attachedhereto and by this reference made a part hereof, plus accrued interest on FIXED RATE NOTE,together with the scheduled principal payment shown in Schedule II, attached hereto and tothe 2007 FIXED RATE NOTE, by this reference made a part hereof, plus accrued interest on2007 FIXED RATE NOTE.     In addition, on the sixteenth day of every third month, commencing three months afterCOMPLETION DATE, BORROWER shall pay $634,729.57 to BANK, which shall be allocated asfollows:     a. first to accrued interest on LONG TERM REVOLVING NOTE;     b. next to accrued interest on VARIABLE RATE NOTE;     c. next to principal on VARIABLE RATE NOTE;     After VARIABLE RATE NOTE has been fully paid, such quarterly payments shall beallocated first to accrued interest on LONG TERM REVOLVING NOTE, and thence toprincipal, reducing available revolving loan capacity. All unpaidprincipal and accrued interest under the TERM LOANS shall be due andpayable on LOANTERMINATION DATE, if not sooner paid.     5. BORROWERcertifies by its execution hereof that the representations and warranties setforth in Section 5 of the AGREEMENT are true as of this date, and that no EVENT OFDEFAULT under the AGREEMENT, and no event which, with the giving of notice or passage oftime or both, would become such an EVENT OF DEFAULT, has occurred as of this date.     6. Exceptas amended hereby the parties ratify and confirm as binding upon them all ofthe terms of the AGREEMENT.     IN WITNESS whereof the parties set their hands as of the date first written above.         **First National Bank of Omaha**   **Red Trail Energy, LLC**         By: /s/ Andrew Wong   By: /s/ Frank Kirschenheiter           Andrew Wong        Commercial Loan Officer   Name: Frank Kirschenheiter                      Title: Secretary                        And                 By: /s/ Mike Appert                       Name: Mike Appert                       Title: Chairman         
 Page 2 of 4 

 
       STATE OF NORTH DAKOTA  )             ) ss.  COUNTY OF STARK  )   On this 27 day of December, 2007, before me, the undersigned Notary Public, personallyappeared SECRETARY, the Secretary of Red Trail Energy, LLC,on behalf of said entity, and each acknowledged that he executed the foregoing Amendment to LoanAgreement as his voluntary act and deed and that of Red Trail Energy, LLC./s/Deell Hoff                                              Notary Public       STATE OF NORTH DAKOTA  )  DEELL HOFF          ) ss. Notary PublicCOUNTY OF STARK  )  State of North Dakota      My Commission Expires Oct. 21, 2011On this 27 day of December, 2007, before me, the undersigned Notary Public,personally appeared Mike Appert, the Chairman of Red Trail Energy, LLC,on behalf of said entity, and each acknowledged that he executed theforegoing Amendment to Loan Agreement as his voluntary act and deed and that of Red Trail Energy,LLC./s/ Deell Hoff                                               Notary Public     DEELL HOFF