Document:

Exhibit 10.17

AMENDMENT
TO DAKOTA PETROLEUM TRANSPORT SOLUTIONS, LLC MEMBER

CONTROL AGREEMENT

                    AMENDMENT
TO DAKOTA PETROLEUM TRANSPORT SOLUTIONS, LLC MEMBER CONTROL AGREEMENT (this “Amendment”)
dated as of April 29, 2011 by and among Dakota Plains Transport, Inc., a Nevada corporation
(“DPT”), Petroleum Transport Solutions, LLC, a Minnesota Limited Liability
Company (“PTS”), and Dakota Petroleum Transport Solutions, LLC, a Minnesota
Limited Liability Company (the “Company”).

W I T N E S S E T H :

                    WHEREAS,
DPT, PTS and the Company are parties to that certain Dakota Petroleum Transport
Solutions, LLC Member Control Agreement dated as of November 9, 2009, as
amended and supplemented (the “Agreement”); 

                    WHEREAS,
DPT and PTS constitute all of the members of the Company; and

                    WHEREAS,
DPT, PTS and the Company desire to amend the Agreement as set forth herein and
pursuant to Section 10.5 of the Agreement;

                    NOW,
THEREFORE, in consideration of the premises, the mutual agreements hereinafter
contained and for other good and valuable consideration, the receipt and
sufficiency of which are hereby acknowledged, DPT, PTS and the Company hereby
agree as follows:

                    SECTION
1     Capitalized Terms. Capitalized terms used herein, but not otherwise
defined herein, shall have the meanings ascribed to them in the Agreement.

                    SECTION
2     Amendment to Section 1.5. Section 1.5 of the Agreement is hereby amended
by deleting such Section 1.5 in its entirety and inserting in lieu thereof the
following:

                    “1.5)       Purpose. The Company shall be authorized to
engage in (a) the acquisition, construction and operation of a petroleum
transloading facility in New Town, North Dakota (the “Transloading Facility”);
and (b) any other lawful activities as the Board of Governors may determine
from time to time.”

                    SECTION
3     Amendments to Section 3.2(c). Section 3.2(c) to the Agreement is
hereby amended by deleting therefrom the word “another” and inserting in lieu
thereof the word “any”.

                    SECTION
4     Amendment to Section 3.3(a)(v). Section 3.3(a)(v) of the Agreement is
hereby amended by deleting therefrom the words “, to purchase hydrocarbons for
transfer to and transloading through the Transloading Facility, and marketing
such hydrocarbons to refiners and other end-users”.

                    SECTION
5     Amendment to Section 3.3(b)(iv). Section 3.3(b)(iv) of the Agreement
is hereby amended by deleting therefrom the words “ to market hydrocarbons
produced in North Dakota and purchased by the Company for transloading through
the Transloading Facility, and marketing such hydrocarbons to refiners and
other end-users”.

                    SECTION
6     New Section 3.3(b)(v). Section 3.3(b) of the Agreement is hereby
amended by inserting the following at the end thereof as a new subclause (v):

                    “The
Members hereby acknowledge and agree that PTS shall have sole discretion in
operating the Transloading Facility, and that such discretion shall include
control of the Transloading Facility, management of the accounting and
bookkeeping functions in connection with the operation of the Transloading
Facility and the establishment of cash flows, revenues and margins to be
derived from Transloading Facility. PTS shall be obligated to use commercially
reasonable efforts, in the exercise of its reasonable judgment, to maximize the
profitability of the Company over the Term, it being understood that (x) such
commercially reasonable efforts shall not require PTS to take any actions
prohibited by this Agreement or to make any contributions or advances to the
Company not required by this Agreement and (y) PTS shall not be in violation of
its obligations hereunder in the exercise of its judgment in connection with
any individual transaction, except as herein provided.”

                    SECTION
7     Amendment to Section 4.4. Section 4.4 of the Agreement is hereby
amended by (a) deleting therefrom the words “Treasury Regulations §
1.704-1(b)(2)(f)” and inserting in lieu thereof the words “Treasury Regulations
§ 1.704-1(b)(iv)(2)(f)” and (b) deleting therefrom the words “Section 4.5” and
inserting in lieu thereof the words “Section 4.4”.

                    SECTION
8     Amendment to Section 7.6(a). Section 7.6(a) of the Agreement is hereby
amended by deleting such Section 7.6(a) in its entirety and inserting in lieu
thereof the following:

                     “(a)       
Business Divisions. The Company shall conduct one category of business
activities: The operation of the Transloading Facility for transloading
petroleum and similar products from transport trucks to rail cars, either for
its own account or for third parties.”

                    SECTION
9     Amendment to Section 7.10. Section 7.10 of the Agreement is hereby
amended by deleting such Section 7.10 in its entirety and inserting in lieu
thereof the following:

                    “7.10)     
Other Ventures. Any Member may engage in or possess any interest in any other
ventures or businesses of any nature or description, independently or with
others, without limitation, including ventures or businesses which may engage
in business transactions with the Company provided such transactions with the
Company are commercially reasonable. Neither the Company nor any other Member
shall have a right by virtue of this Company to participate in any way in any
such other venture or the income or profits derived therefrom. Notwithstanding
the foregoing, each Member agrees that it will not (and it will not permit its
Affiliates to), during the period it is a Member of the Company, and for one
year thereafter, directly or indirectly, participate as owner, investor,
manager or consultant in any hydrocarbon transloading facility anywhere in
North Dakota, except through the Company.”

                    SECTION
10    Amendment to Section 9.1.
Section 9.1 of the Agreement is hereby amended by deleting therefrom the first
sentence thereof and inserting in lieu thereof the following:

2

“Upon any intended transfer
of a Member’s Units, the provisions of the Buy-Sell Agreement among the Members
and the Company (the “Buy-Sell Agreement”) shall govern the process and the
terms of disposition or transfer of such Units. No Member may transfer or
assign all or any portion of such Member’s Units (other than to an Affiliate of
such Member) in a transaction in which the Buy-Sell Agreement would be
operative unless such Member or its Affiliate also transfers or assigns to the
same transferee the same proportion of its units in DPTS Marketing LLC.”

                    SECTION
11    Amendment to Exhibit C.
Exhibit C to the Agreement is hereby amended by deleting therefrom the
following subsections:

“Accounting Fees

The General Accounting Fees are exclusive of the Throughput
Accounting Fees and, as such, shall be paid by the Company in addition to the
Throughput Accounting Fees.”

“General
Accounting

Accounting fees relating to any and all other operations of the
Company (“General Accounting Fees”) shall be charged at a rate equal to $0.0225
per barrel for every barrel of crude oil successfully marketed by the Company.”

                    SECTION
12    Reference to and Effect on the Agreement.

                    (a)     
Each reference in the Agreement to “this Agreement”, “hereunder”, “hereof”,
“herein”, or words of like import shall mean and be a reference to the
Agreement as amended hereby. No reference to this Amendment need be made in any
instrument or document at any time referring to the Agreement, a reference to
the Agreement in any of such to be deemed to be a reference to the Agreement as
amended hereby.

                    (b)     
Except as expressly amended by this Amendment, the Agreement shall remain in
full force and effect.

                    SECTION
13    Counterparts. This Amendment may be executed in any number of
counterparts, each of which shall be deemed an original, and all of which shall
constitute one and the same instrument. The electronic or facsimile
transmission of a signed signature page, by one party to the other(s), shall
constitute valid execution and acceptance of this Amendment by the
signing/transmitting party. This Amendment shall become effective when each of
DPT, PTS and the Company shall have received a counterpart hereof signed by the
others.

                    SECTION
14    Governing Law. This Amendment shall be governed by and construed and
enforced in accordance with the laws of the State of Minnesota applicable to
contracts made and to be performed entirely within such State, without regard
to the conflicts of law principles of such State.

Balance of Page Intentionally Left Blank

3

                    IN
WITNESS WHEREOF, the parties hereto have caused this Amendment to be executed
as of the date first above written.

	
  

 	
  

 
	
  

 	
 DAKOTA PLAINS TRANSPORT, INC.

 
	
  

 	
  

 
	
  

 	
 By: /s/ Gabriel G. Claypool

 
	
  

 	
 Name: Gabriel G. Claypool

 
	
  

 	
 Title: Chief Executive Officer

 
	
  

 	
  

 
	
  

 	
 PETROLEUM TRANSPORT SOLUTIONS, LLC

 
	
  

 	
  

 
	
  

 	
 By: /s/ Paul Nobel

 
	
  

 	
 Name: Paul Nobel

 
	
  

 	
 Title: Sr. Vice President-Finance (Land)

 
	
  

 	
  

 
	
  

 	
 DAKOTA PETROLEUM

 
	
  

 	
 TRANSPORT SOLUTIONS, LLC

 
	
  

 	
  

 
	
  

 	
 By: /s/ William A. Emison

 
	
  

 	
 Name: William A. Emison

 
	
  

 	
 Title: EVPExhibit 10.18

AMENDMENT TO LEASE
AGREEMENT

AMENDMENT
TO LEASE AGREEMENT (this “Amendment”) dated as of August 18, 2011 by and among Dakota Plains, Inc., a Minnesota
corporation f/k/a Dakota Plains Transport, Inc., a Nevada corporation (“Landlord”) and Dakota Petroleum Transport Solutions,
LLC, a Minnesota Limited Liability Tenant (the “Tenant”).

WHEREAS,
Landlord and Tenant are parties to that certain Lease Agreement dated as of November 4, 2009 (the “Agreement”);

WHEREAS,
Landlord and Tenant each desire to amend the Agreement to add clarification language regarding the capitalization of assets set
forth in Section 6 of the Agreement;

WHEREAS,
Section 26 of the Agreement provides that the Agreement may be amended by an agreement made in writing and signed by DP and the
Tenant.

NOW, THEREFORE,
in consideration of the premises, the mutual agreements hereinafter contained and for other good and valuable consideration, the
receipt and sufficiency of which are hereby acknowledged, Landlord and Tenant, intending to be legally bound, agree as follows:

1.                  
Amendments. Section 6 of the Agreement is hereby amended and restated in its
entirety to read as follows:

a)                  
Personal
Property. Tenant shall pay before delinquency all taxes, assessments, license fees, and other charges that are levied and assessed
on personal property, alterations and trade fixtures included in the Premises.

 

b)                  
Real
Property Taxes. Tenant shall pay all Real Property Taxes upon the Property payable during the Term
of this Lease, prorated for any partial calendar years during the Term hereof, provided that
Landlord provides or causes the tax bills therefor to be provided Tenant at least the later of (i) thirty (30) days prior to the
date the same are due without penalty or (ii) ten (10) business days following Landlord’s receipt of such tax bills. Upon
written request of Landlord, Tenant shall provide a receipt of such payment to Landlord. Alternatively, at Landlord’s election,
Landlord may bill Tenant for installments of Real Property Taxes no more than sixty (60) days prior to such due date, and Tenant
shall pay Landlord the amount of such billing within ten (10) days of such due date. The term “Real Property Taxes”
shall mean and include all taxes, general and special assessments (amortized over the longest period available to Landlord) and
other governmental charges, general and special, including, without limitation, assessments for public improvements or benefits,
which shall, during the Term, be assessed, levied, and imposed by any governmental authority upon the Property. Real Property Taxes
shall not include any late fees or penalties (unless arising from Tenant’s failure to timely pay the same as set forth above),
any municipal, county, state or federal income or franchise taxes of Landlord, or documentary transfer taxes in connection with
any transfer, sale or change in ownership of all or part of the Property. Tenant shall have the right to diligently contest the
amount or validity of any Real Property Taxes upon the Premises or any part thereof, with the appropriate governmental agency by
appropriate legal proceedings, and shall be entitled to the economic benefit of the final resolution thereof to the extent such
benefit relates to the Term hereof.

 

c)                  
Maintenance,
Repair, and Premises Expansion Expenses.  Tenant shall pay all costs and expenses to perform all maintenance and repair of
the Premises, and to acquire expansion, improvements or additions to the Premises. Any such additions or expansions shall become
the property of the Landlord and subject to this Lease as part of the Premises.

 

    	 

    	 

    

d)                  
Asset
Capitalization. For accounting and financial reporting requirements, the entity that directly pays for any improvements
to the Premises will capitalize those costs in accordance with generally accepted accounting principles in the U.S. and amortize
or depreciate the capitalized amounts over the applicable period.  Specific to the additions and expansions known as the “Phase
III Leasehold Improvements”, the Tenant has directly paid the cost on these Leasehold Improvements.  Therefore, the
Tenant will capitalize and amortize these Leasehold Improvements over the expected term of the lease for accounting and financial
reporting requirements.  In the absence of a specific Agreement or Amendment, the existing and future “expansions, improvements
or additions to the Premises” shall become the property of the Landlord upon the expiration or earlier termination of the
Lease.

 

2.                  
Miscellaneous.
The laws of the State of Minnesota shall govern the validity and the construction of this Amendment without regard to principles
of conflict of laws. Except as specifically set forth herein, all terms and provisions of the Agreement shall remain in full force
and effect with no other modification or waiver. This Amendment may be executed in two or more counterparts, and delivered by facsimile
or other means of electronic communication, each of which shall be considered an original.

[Signature Page Follows] 

 

 

 

 

 

 

 

 

    2	 

    	 

    

IN WITNESS WHEREOF, the parties
have executed this Amendment effective as of the date first set forth above.

 

	 	LANDLORD:	 
	 	 	 
	 	DAKOTA PLAINS, INC. (f/k/a DAKOTA PLAINS TRANSPORT, INC.)	 
	 	a Minnesota corporation	 
	 	 	 
	 	 	 
	 	By /s/ Gabe Claypool	 
	 	Name Gabriel G. Claypool	 
	 	Its Chief Manager	 
	 	 	 
	 	 	 
	 	TENANT:	 
	 	 	 
	 	DAKOTA PETROLEUM TRANSPORT SOLUTIONS, LLC	 
	 	a Minnesota limited liability company	 
	 	 	 
	 	 	 
	 	By /s/ William A. Emison	 
	 	Name William A. Emison	 
	 	Its Chief Manager	 

 

 

 

 

 

    3

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00201-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00201-of-00352.parquet"}]]