Document:

<PAGE>

                                                                    Exhibit 10.4

                               SUNOCO PARTNERS LLC
                              ANNUAL INCENTIVE PLAN

1. INTENT.

     The purpose of this Annual Incentive Plan (the "Plan") is to motivate
management and the employees of Sunoco Partners LLC (the "Company") and its
affiliates who perform services for Sunoco Logistics Partners L.P., a Delaware
limited partnership, and its subsidiaries (the "Partnership") to collectively
produce outstanding results, encourage superior performance, increase
productivity, and aid in attracting and retaining key employees.

2. PLAN GUIDELINES.

     The administration of the Plan and any potential awards granted pursuant to
the Plan is subject to the determination by the Compensation Committee of the
Company's Board of Directors that the performance goals for the applicable
periods have been achieved. The Plan is an additional compensation program
designed to encourage Plan participants (designated by the Company's
Compensation Committee) to exceed specified objective performance targets for
the designated period. The Compensation Committee will review the Partnership's
performance results for the designated performance period, and thereafter will
determine whether or not to approve awards under the Plan.

3. PERFORMANCE TARGETS.

         3.1 Designation of Performance Targets. The Company's Chief Executive
             ----------------------------------
     Officer shall recommend, subject to the Compensation Committee's approval,
     the performance measures and performance targets to be used for each
     calendar year (a "Plan Year") in determining the bonus amounts to be paid
     as a result of the Plan. Performance targets may be based on Partnership,
     business unit and/or individual achievements, or any combination of these,
     or on such other factors as the Company's Chief Executive Officer, subject
     to the approval of the Compensation Committee, may determine. Different
     performance targets may be established for different participants for any
     Plan Year. Satisfactory results, as determined by the Compensation
     Committee in its sole discretion, must be achieved in order for an award to
     be made pursuant to the Plan.

         3.2 Equitable Adjustment to Performance Targets. At its discretion, the
             -------------------------------------------
     Compensation Committee may adjust actual performance measure results for
     extraordinary events or accounting adjustments resulting from significant
     asset purchases or dispositions or other events not contemplated or
     otherwise considered by the Compensation Committee when the performance
     measures and targets were set.

4. PARTICIPANTS.

     The Compensation Committee, in consultation with the Company's Chief
Executive Officer, will designate members of management and employees of the
Company and its affiliates as eligible to participate in the Plan. Employees so
designated shall be referred to as "Participants."

5. PARTICIPATION LEVELS.

     A Participant's designated level of participation in the Plan, or target
bonus, will be determined under criteria established or approved by the
Compensation Committee for that Plan Year or designated

                                       1

<PAGE>

performance period. Levels of participation in the Plan may vary according to a
Participant's position and the relative impact such Participant can have on the
Company's and/or affiliates' operations. Care will be used in communicating to
any participant his performance targets and potential performance amount for a
Plan Year. The amount of target bonus a participant may receive for any Plan
Year, if any, will depend upon the performance level achieved (unless waived)
for that Plan Year, as determined by the Compensation Committee. No Participant
shall have any claim to be granted any award under the Plan, and there is no
obligation for uniformity of treatment of Participants. The terms and conditions
of awards need not be the same respecting each Participant.

6. AWARD PAYOUT.

     Awards typically will be determined after the end of the Plan Year or
designated performance period. Awards will be paid in cash annually, unless
otherwise determined by the Compensation Committee. The Compensation Committee
will have the discretion, by Participant and by grant, to reduce (but not to
increase) some or all of the amount of any award that otherwise would be payable
by reason of the satisfaction of the applicable performance targets. In making
any such determination, the Compensation Committee is authorized to take into
account any such factor or factors it determines are appropriate, including but
not limited to Company, business unit and individual performance; provided,
however, that the exercise of such negative discretion with respect to one
Participant may not be used to increase the amount of any award otherwise
payable to another Participant.

7. TERMINATION OF EMPLOYMENT.

     Termination of a Participant's employment for any reason prior to payout of
an award under the Plan will result in the Participant's forfeiture of any
right, title or interest in any such award, unless and to the extent waived by
the Compensation Committee in its sole discretion.

8. AMENDMENT AND TERMINATION.

     The Company's Compensation Committee, at its sole discretion, may amend the
Plan or terminate the Plan at any time.

9. Administration.

     The Compensation Committee may delegate the responsibility for the
administration and operation of the Plan to the Chief Executive Officer (or
designee) of the Company or any participating affiliate. The Compensation
Committee (or the person(s) to which administrative authority has been
delegated) shall have the authority to interpret and construe any and all
provisions of the Plan, including all performance targets and whether and to
what extent achieved. Any determination made by the Compensation Committee (or
the person(s) to which administrative authority has been delegated) shall be
final and conclusive and binding on all persons.

10. INDEMNIFICATION.

     Neither the Company, any participating affiliate, nor the Board of
Directors, or any member or any committee thereof, of the Company or any
participating affiliate, nor any employee of the Company or any participating
affiliate shall be liable for any act, omission, interpretation, construction or
determination made in connection with the Plan in good faith; and the members of
the Company's Board of Directors, the Compensation Committee and/or the
employees of the Company or any participating affiliate shall be entitled to
indemnification and reimbursement by the Company to the maximum extent

                                       2

<PAGE>

permitted by law in respect of any claim, loss, damage or expense (including
counsel's fees) arising from their acts, omission and conduct in their official
capacity with respect to the Plan.

11. GENERAL PROVISIONS.

         11.1 Non-Guarantee of Employment. Nothing contained in this Plan shall
              ---------------------------
     be construed as a contract of employment between the Company and/or a
     participating affiliate and a Participant, and nothing in this Plan shall
     confer upon any Participant any right to continued employment with the
     Company or a participating affiliate, or to interfere with the right of the
     Company or a participating affiliate to terminate a Participant's
     employment, with or without cause.

         11.2 Interests Not Transferable. No benefits under the Plan shall be
              --------------------------
     subject in any manner to alienation, sale, transfer, assignment, pledge,
     attachment or other legal process, or encumbrance of any kind, and any
     attempt to do so shall be void.

         11.3 Facility Payment. Any amounts payable hereunder to any person
              ----------------
     under legal disability or who, in the judgment of the Compensation
     Committee or its designee, is unable to properly manage his or her
     financial affairs, may be paid to the legal representative of such person,
     or may be applied for the benefit of such person in any manner which the
     Compensation Committee or its designee may select, and each participating
     affiliate shall be relieved of any further liability for payment of such
     amounts.

         11.4 Controlling Law. To the extent not superseded by federal law, the
              ---------------
     law of the Commonwealth of Pennsylvania shall be controlling in all matters
     relating to the Plan.

         11.5 No Rights to Award. No person shall have any claim to be granted
              ------------------
     any award under the Plan, and there is no obligation for uniformity of
     treatment of participants. The terms and conditions of awards need not be
     the same with respect to each recipient.

         11.6 Severability. If any Plan provision or any award is or becomes or
              ------------
     is deemed to be invalid, illegal, or unenforceable in any jurisdiction or
     as to any person or award, or would disqualify the Plan or any award under
     the law deemed applicable by the Compensation Committee, such provision
     shall be construed or deemed amended to conform to the applicable laws, or
     if it cannot be construed or deemed amended without, in the determination
     of the Compensation Committee, materially altering the intent of the Plan
     or the award, such provision shall be stricken as to such jurisdiction,
     person or award and the remainder of the Plan and any such award shall
     remain in full force and effect.

         11.7 No Trust or Fund Created. Neither the Plan nor any award shall
              ------------------------
     create or be construed to create a trust or separate fund of any kind or a
     fiduciary relationship between the Company or any participating affiliate
     and a Participant or any other person. To the extent that any person
     acquires a right to receive payments from the Company or any participating
     affiliate pursuant to an award, such right shall be no greater than the
     right of any general unsecured creditor of the Company or any participating
     affiliate.

         11.8 Headings. Headings are given to the sections of the Plan solely as
              --------
     a convenience to facilitate reference. Such headings shall not be deemed in
     any way material or relevant to the construction or interpretation of the
     Plan or any provision of it.

         11.9 Tax Withholding. The Company and/or any participating affiliate
              ---------------
     may deduct from any payment otherwise due under this Plan to a Participant
     (or beneficiary) amounts required by law to be withheld for purposes of
     federal, state or local taxes.

                                       3<PAGE>

                                                                  Exhibit 10.7.1

                                 THIRD AMENDMENT
                                 ---------------

                  THIRD AMENDMENT (this is "Amendment"), dated as of
December 18, 2001, among SUNOCO, INC. (f/k/a Sun Company, Inc.), a Pennsylvania
corporation (the "Company"), the Banks party to the Credit Agreement referred to
below (the "Banks"), and BANKERS TRUST COMPANY, as agent (the "Agent"). All
capitalized terms used herein and not otherwise defined herein shall have the
respective meanings provided such terms in the Credit Agreement referred to
below.

                                   WITNESSETH:
                                   ----------

                   WHEREAS, the Company, the Banks and the Agent are parties to
 a Credit Agreement, dated as of October 3, 1995 (as amended, modified and/or
 supplemented through, but not including, the date hereof, the "Credit
 Agreement"); and

                   WHEREAS, the Company has requested, and the Banks have agreed
 to, the amendments provided herein on the terms and conditions set forth
 herein;

                   NOW, THEREFORE, it is agreed:

                   1.       Section 7 of the Credit Agreement is hereby amended
by inserting the following new Section 7.14 at the end
 of such Section:

                   "7.14 Business. Notwithstanding anything to the contrary
                         --------
          contained in this Agreement, no general partner of any Excluded Entity
          will engage in any business or own any material asset or have any
          material liability other than the ownership of its general partnership
          interest in such Excluded Entity."

                   2.    The definition of "Significant Subsidiary" appearing
in Section 10 of the Credit Agreement is hereby amended by deleting the last
sentence thereof and inserting the following new last sentence in lieu thereof:

          "Notwithstanding the above, (I) the term "Significant Subsidiary"
          shall in any event include (a) [Sun Company, Inc. (R&M)], (b) Atlantic
          Petroleum Corporation, (c) any Subsidiary of any Person listed in
          clauses (a) and (b) above and (d) any Subsidiary of the Company which
          purchases any Margin Stock with the proceeds of any Loans hereunder
          and (II) the term "Significant Subsidiary", solely for purposes of
          Sections 7.06 and 7.08(a) (and not for any other purpose), shall
          exclude (a) each entity (each such entity, an "`Excluded Entity" and,
          collectively, the "Excluded Entities"; the term "Excluded Entity" to
          include, without limitation, any limited partnership, master limited
          partnership, operating limited partnership, general partnership,
          limited liability company or corporation, and, in each case, any
          Subsidiary thereof) which, upon formation, will be the

<PAGE>

          Subsidiary of the Company which succeeds to any part of the Company's
          business of, and only so long as substantially all of the business of
          such entity (and its Subsidiaries) consists of (and continues to
          consist of), crude oil and refined product pipeline operations,
          terminalling and transport operations, domestic lease crude oil
          acquisition, marketing and related trucking operations and/or any
          business related to any of the foregoing, and (b) any general partner
          of any Excluded Entity, so long as the only material asset of such
          general partner is its general partnership interest in such Excluded
          Entity."

                  3.     Section 10 of the Credit Agreement is hereby further
amended by inserting the following new definition in the appropriate
alphabetical order:

                  "Excluded Entity" shall have the meaning provided in the
          definition of "Significant Subsidiary".

                  4.     This Amendment is limited as specified and shall not
constitute a moditication, acceptance or waiver of any other provision of the
Credit Agreement or any other Credit Document.

                  5.     This Amendment may be executed in any number of
counterparts and by the different parties hereto on separate counterparts, each
of which counterparts when executed and delivered shall be an original, but all
of which shall together constitute one and the same instrument. A complete set
of counterparts shall be lodged with the Company and the Agent.

                  6.     THIS AMENDMENT AND THE RIGHTS AND OBLIGATIONS OF
THE PARTIES HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE WITH AND GOVERNED BY THE
LAW OF THE STATE OF NEW YORK.

                  7.     This Amendment shall become effective on the date (the
"Third Amendment Effective Date") when (i) the Company and the Required Banks
shall have signed a counterpart hereof (whether the same or different
counterparts) and shall have delivered (including by way of facsimile
transmission) the same to the Agent at the Notice Office and (ii) the Company
shall have paid to each Bank which executes and delivers to the Agent a
counterpart of this Amendment on or before 5:00 p.m. (New York time) on December
18, 2001, a fee equal to 0.075% of such Bank's Commitment on the Third Amendment
Effective Date.

                  8.     In order to induce the Banks to enter into this
Amendment, the Company hereby represents and warrants that (i) no Default or
Event of Default exists as of the Third Amendment Effective Date, both before
and after giving effect to this Amendment, and (ii) on the Third Amendment
Effective Date, both before and after giving effect to this Amendment, all
representations and warranties contained in the Credit Agreement and in the
other Credit Documents are true and correct in all material respects (it being
understood and agreed that any representation or warranty which by its terms is
made as of a specified date shall be true and correct in all material respects
only as of such specified date).

                                      -2-

<PAGE>

                  9.     From and after the Third Amendment Effective Date, all
references in the Credit Agreement and each of the Credit Documents to the
Credit Agreement shall be deemed to be references to the Credit Agreement as
modified hereby. This Amendment shall constitute a Credit Document for all
purposes under the Credit Agreement and the other Credit Documents.

                                  *     *     *

                                      -3-

<PAGE>

                  IN WITNESS WHEREOF, each of the parties hereto has caused a
counterpart of this Amendment to be duly executed and delivered as of the date
first above written.

                                  SUNOCO, INC. (f/k/a Sun Company, Inc.)

                                  By: /s/ Paul Mulholland
                                     ----------------------------------
                                     Name: Paul Mulholland
                                     Title: Treasurer

                                  BANKERS TRUST COMPANY,
                                      Individually and as Agent

                                  By: /s/ Marcus Tarkington
                                     ----------------------------------
                                     Name: Marcus Tarkington
                                     Title: Director

                                  JP MORGAN CHASE BANK

                                  By: /s/ Russell A. Johnson
                                     ----------------------------------
                                     Name: Russell A. Johnson
                                     Title: Vice President

                                  THE BANK OF NOVA SCOTIA

                                  By: /s/ Philip N. Adsetts
                                     ----------------------------------
                                     Name: Philip N. Adsetts
                                     Title: Managing Director

                                       4

<PAGE>

                                     BANK OF AMERICA, N.A.

                                     By:   /s/ Ronald E. McKaig
                                        --------------------------
                                        Name:  Ronald E. McKaig
                                        Title: Managing Director

                                     BANK OF SCOTLAND

                                     By:   /s/ Joseph Fratus
                                        --------------------------
                                        Name:  Joseph Fratus
                                        Title: Vice President

                                     BANK OF TOKYO-MITSUBISHI TRUST
                                       COMPANY

                                     By:   /s/ Heather Zimmermann
                                        --------------------------
                                        Name:  H. Zimmermann
                                        Title: Vice President

                                     CITIBANK, N.A.

                                     By:   /s/ Gordon Dekuyper
                                        --------------------------
                                        Name:  Gordon Dekuyper
                                        Title: Vice President

                                     CREDIT SUISSE FIRST BOSTON

                                     By:   /s/ Paul L. Colon
                                        --------------------------
                                        Name:  Paul L. Colon
                                        Title: Vice President

                                     By:   /s/ Vanena Gomez
                                        --------------------------
                                        Name:  Vanena Gomez
                                        Title: Associate

                                       5

<PAGE>

                                  FLEET BANK, N.A.

                                  By: /s/ Renee Nadlec
                                     ----------------------------------
                                     Name: Renee Nadlec
                                     Title: MD

                                  FIRST UNION NATIONAL BANK

                                  By: /s/ Alkesh V. Nanavaty
                                     ----------------------------------
                                     Name: Alkesh V. Nanavaty
                                     Title: VP

                                  KEYBANK NATIONAL ASSOCIATION

                                  By: /s/ David W. Lally
                                     ----------------------------------
                                     Name: David W. Lally
                                     Title: Assistant Vice President

                                  MELLON BANK, S.A.

                                  By: /s/ Mark W. Rogers
                                     ----------------------------------
                                     Name: Mark W. Rogers
                                     Title:

                                  ROYAL BANK OF CANADA

                                  By: /s/ Sheryl L. Greenberg
                                     ----------------------------------
                                     Name: Sheryl L. Greenberg
                                     Title: Senior Manager

                                       6

<PAGE>

                                  BANK OF MONTREAL

                                  By:
                                     ----------------------------------
                                     Name:
                                     Title:

                                       7

<PAGE>

                                  THE DAI-ICHI KANGYO BANK, LTD.

                                  By: /s/ Chimie T. Pemba
                                     ----------------------------------
                                     Name: CHIMIE T. PEMBA
                                     Title: ACCOUNT OFFICER

                                       8

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