Document:

First Amendement of Pipelines and Terminals Agreement

 Exhibit 10.4 
 FIRST AMENDMENT OF 
 PIPELINES AND TERMINALS AGREEMENT 

This First Amendment to the Pipelines and Terminals Agreement is executed by Holly Energy Partners, L.P.
(“HEP”) and Alon USA, L.P. (“Alon”) (collectively, the “Parties”) to be effective as of the 1st day of September, 2008. 
 WHEREAS, HEP and Alon (collectively, the “Parties”), wish to make certain amendments to the Pipelines and Terminals Agreement executed on February 28, 2005 and amended by the Letter
Agreement dated January 25, 2005, and the Second Letter Agreement dated June 29, 2007 (as amended, the “Agreement”); 
 NOW, THEREFORE, the parties have agreed to certain changes to the terms and provisions of Exhibit C to the Agreement and now wish to amend the Pipelines and Terminals Agreement to evidence same.

 In consideration of the mutual covenants contained herein and other good and valuable consideration, the receipt and
sufficiency of which is hereby acknowledged, the parties hereby amend the Agreement as follows: 
 Section 1 of Exhibit C
to the Agreement is hereby amended and restated in its entirety as follows: 
 Each of the service fees listed in this Exhibit
C will adjust at the beginning of each Contract Year by an amount equal to the percentage change from the previous Contract Year in the average terminal fees charged by Nustar for Abernathy, Texas and Truman Arnold for Caddo Mills, Texas.

 Effective September 1, 2008, the fees charged by Nustar Abernathy are $.30 per barrel and the fees charged by Truman
Arnold Caddo Mills are $.36 per barrel. The average of these fees is $.33 per barrel and will be used as the base to calculate future changes to the fees in Exhibit C. 
 Capitalized terms not otherwise defined herein shall have the meanings set forth in the Agreement. As amended hereby, the Agreement is ratified in its entirety. 

[Signature page follows] 

  
 First Amendment to Pipelines
and Terminals Agreement 
 Page 1 of 2 

 IN WITNESS WHEREOF, the undersigned parties have executed this Amendment as of
September 1, 2008. 
  

											
	ALON USA, L.P.	 	
					
		 	By:	 	 ALON USA GP, LLC,

its General Partner
	    		 	
						
		 		 	By:	 	  
	    	Date:	 	  

		 		 		 	Jeff D. Morris	    		 	
		 		 		 	President and Chief Executive Officer	    		 	
		
	HOLLY ENERGY PARTNERS, L.P.	 	
					
		 	By:	 	 HEP LOGISTICS HOLDINGS, L.P.,
 General Partner
	    		 	
						
		 		 	By:	 	 HOLLY LOGISTIC SERVICES, L.L.C.,

General Partner
	    		 	
						
		 		 	By:	 	  
	    	Date:	 	  

		 		 		 	David G. Blair	    		 	
		 		 		 	Senior Vice President	    		 	

  
 First Amendment to Pipelines
and Terminals Agreement 
 Page 2 of 2Second Amendment to Pipeline and Terminals Agreement

 Exhibit 10.5 
 SECOND AMENDMENT 
 TO PIPELINES AND TERMINALS AGREEMENT 

This Second Amendment (the “Second Amendment”) to the Pipelines and Terminals Agreement dated February 28, 2005 (the
“Original Agreement”), by and between Holly Energy Partners, L.P. (“HEP”) and Alon USA, L.P. (“ALON”) (collectively, the “Parties”), is entered into as of the
            day of             , 2011 (the “Effective Date”). 

WHEREAS, the Original Agreement has been previously amended by a Letter Agreement dated January 25, 2005, a Second Letter Agreement
dated June 29, 2007, and a First Amendment of Pipelines and Terminals Agreement dated effective September 1, 2008 (the Original Agreement, as amended to the date hereof, being referred to herein as the “Agreement”); and

 WHEREAS, ALON, as agent for J. Aron & Company (“J. Aron”), desires to utilize ALON’s rights
under the Agreement to transport and store, and obtain handling services for, product owned by J. Aron. 
 NOW, THEREFORE,
the Parties and J. Aron agree to add the following terms as Section 22 to the Agreement: 
 SECTION 22 

(a) J. Aron Product. From time to time during the term of the Agreement, ALON may designate in writing to HEP that all of the
products being stored and handled by HEP pursuant to the Agreement are owned by J. Aron (the “J. Aron Product”), other than ethanol and additives. Upon receipt of such written designation, HEP shall note in its records and
account for separately the J. Aron ownership until such time as J. Aron notifies HEP in writing that ownership in such product has been transferred from J. Aron to ALON, it being the intention that HEP shall not be required to
recognize any other transfers of ownership of any stored product (other than transfers from J. Aron to ALON) unless such transfer and recognition are agreed to in writing by HEP in its sole discretion. ALON shall act as J. Aron’s sole
agent for all purposes of the Agreement, and, subject to paragraph 22(b) below, HEP shall be entitled to follow ALON’s instructions with respect to all J. Aron Product that is transported, stored or handled by HEP pursuant to the Agreement. For
avoidance of doubt, specifically, without limitation, but subject to paragraph 22(b) below, HEP shall have the right to transfer possession of J. Aron Product to ALON’s customers or otherwise as instructed by ALON. 

(b) J. Aron Instructions. Notwithstanding the agency provisions of paragraph 22(a) above, at any time HEP has possession of any J.
Aron Product under this Agreement, J. Aron shall have the right to either (i) deliver to HEP a written notice instructing HEP to promptly within a reasonable time stop all transfers of J. Aron Product into and out of HEP’s pipeline and
storage system covered by this Agreement (the “Covered System”), and thereafter to promptly within a reasonable time evacuate all J. Aron Product then being held by HEP out of the Covered System to a destination listed by J. Aron in the
written notice, or (ii) deliver to HEP a written notice instructing HEP to accept further transfers of J. Aron Product into the Covered System for 

 
a period of fourteen days (solely to allow J. Aron to transport product owned by J. Aron and located at ALON’s Big Springs, Texas, refinery), and to promptly within a reasonable time
evacuate all J. Aron Product out of the Covered System to a destination listed by J. Aron in the written notice, in each case pursuant to terms and conditions identical to those set forth in this Agreement. Upon receipt of instructions from J. Aron
as described in clause (i) or (ii) of the preceding sentence, HEP will cease taking instructions from ALON with respect to J. Aron Product and will follow the written instructions received from J. Aron pursuant to clause (i) or
(ii) of the preceding sentence. Upon issuance of instructions as described in clause (i) or (ii) above, J. Aron will be liable to HEP for all costs under this Agreement with respect to J. Aron Product as well as all incremental or
additional costs of complying with the instructions sent by J. Aron under clause (i) or (ii) above. After J. Aron delivers to HEP instructions as described in clause (i) or (ii) above, J. Aron may request that HEP engage in
discussions regarding other instructions with respect to J. Aron Product, but HEP shall have no obligation to follow or recognize such other instructions unless such other instructions are agreed to by HEP and documented to HEP’s satisfaction,
in each case in HEP’s sole discretion. 
 (c) Pro Rata Treatment. All J. Aron Product shall be subject to
pro rata treatment pursuant to the Agreement with respect to matters related to shortages and overages of quantity, specifications, and dealing with trans-mix. 
 (d) Product Measurements; Inventory Reports; Notices. ALON and J. Aron shall each have the product measurement rights provided for in Section 8 of this Agreement for so long as any
J. Aron Product is located in the Refined Product Pipelines or Refined Product Terminals. HEP shall send the inventory reports described in Section 8 of this Agreement and notices delivered pursuant to Section 20 of this Agreement to
J. Aron at the following address, with copies to ALON: 
  

					
		 	  
	 	
		 	  
	 	
		 	  
	 	

 (d) All Provisions in Effect. All provisions of the Agreement, as amended or adjusted by this
Section 22, shall be in full force and effect with respect to J. Aron Product as if the J. Aron Product was owned by ALON. 
 (d) Payment by ALON. Except as set forth in Section 22(b) above, ALON shall be solely liable under this Agreement for all amounts owed to HEP under this Agreement with respect to J. Aron
Product. Any failure to timely pay any such amounts shall be deemed a default under this Agreement, and HEP shall be entitled to enforce all of its remedies with respect to such default as set forth in this Agreement or otherwise available at law or
in equity. 

  
 - 2 -

 This Second Amendment has been executed as of the date first above written. 

 

					
	HEP:
	
	HOLLY ENERGY PARTNERS, L.P.
		
	By:	 	 Holly Logistics Holdings, L.P.
 General Partner

			
		 	By:	 	 Holly Logistic Services, L.L.C.,

General Partner

			
		 	By:	 	  

		 	Name:	 	  

		 	Title:	 	  

		 	Date:	 	  

	
	ALON:
	
	ALON USA, L.P.
		
	By:	 	ALON USA GP, LLC, General Partner
			
		 	By:	 	  

		 	Name:	 	  

		 	Title:	 	  

		 	Date:	 	  

 J. Aron hereby agrees to be bound by this Second Amendment and such portions of the Agreement that
apply to J. Aron or J. Aron Product. 
  

			
	J. ARON & COMPANY
		
	By:	 	  

	Name:	 	  

	Title:	 	  

	Date:	 	  

  
 - 3 -Third Amendment to Pipelines and Terminals Agreement

 Exhibit 10.6 
 THIRD AMENDMENT 
 TO PIPELINES AND TERMINALS AGREEMENT 

This Third Amendment (the “Third Amendment”) to the Pipelines and Terminals Agreement dated February 28, 2005 (the
“Original Agreement”), by and between Holly Energy Partners, L.P. (“HEP”) and Alon USA, L.P. (“ALON” and, collectively with HEP, the “Parties”), is entered into as of the      day of June,
2011. 
 WHEREAS, the Original Agreement has been previously amended by (i) a Letter Agreement dated January 25, 2005,
(ii) a Second Letter Agreement dated June 29, 2007, (iii) a Third Letter Agreement dated April 1, 2011, (iv) a First Amendment of Pipelines and Terminals Agreement dated effective September 1, 2008, and (v) a
Second Amendment to Pipelines and Terminals Agreement dated March 1, 2011 (the Original Agreement, as amended to the date hereof, being referred to herein as the “Agreement”); and 

NOW, THEREFORE, the Parties agree that the Agreement is hereby amended as follows: 

1. Section 15(a)(vi). Section 15(a)(vi) of the Agreement is hereby amended by adding the following language to
the end of the first sentence of that Section: 
 and (C) any offset credited to Alon in accordance with
Section 15(d) below as a result of prior Net Excess Revenues. 
 2. Section 15(d).
Section 15(d) of the Agreement is hereby amended and restated so that it shall read in its entirety as follows: 

(d) Commencing January 1, 2011 no Deficiency Payments made in any prior calendar year can be used by Alon to offset pipeline
tariff and terminal fee payment obligations for volumes shipped or terminalled in excess of its Minimum Volume Commitment with respect to a Contract Quarter occurring in any subsequent calendar year. Deficiency Payments made with respect to all
periods after January 1, 2011 may be used by Alon to offset Alon’s pipeline tariff and terminal fee payment obligations for volumes shipped or terminalled in excess of its Minimum Volume Commitment for any subsequent Contract Quarter
during only that same calendar year. Commencing with the first Contract Quarter of 2011 and for all Contract Quarters thereafter, in the event Alon has paid pipeline tariffs or terminal fees with respect to volumes shipped during a Contract Quarter
in excess of its Minimum Volume Commitment with respect to such Contract Quarter (“Net Excess Revenues”), Alon may use such Net Excess Revenues to offset Alon’s pipeline tariff and terminal fee payment obligations with respect to
subsequent Contract Quarters in that same 

  
 - 1 -

 
calendar year and Contract Quarters ending in the next succeeding calendar year. 
 (a) All Provisions in Effect. Except as amended hereby, all of the terms and conditions of the Agreement shall remain in full force and effect as provided therein. 

[Signatures appear on the following page.] 

  
 - 2 -

 This Third Amendment has been executed as of the date first above written. 

 

					
	HEP:
	
	HOLLY ENERGY PARTNERS, L.P.
		
	By:	 	 HEP Logistics Holdings, L.P.,
 General Partner

			
		 	By:	 	 Holly Logistic Services, L.L.C.,
 General Partner

			
		 	By:	 	  

		 	Name:	 	  

		 	Title:	 	  

		 	Date:	 	  

	
	ALON:
	
	ALON USA, L.P.
		
	By:	 	ALON USA GP, LLC, General Partner
			
		 	By:	 	  

		 	Name:	 	  

		 	Title:	 	  

		 	Date:	 	  

 [SIGNATURE PAGE TO THIRD
AMENDMENT TO PIPELINES AND TERMINALS AGREEMENT]

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