The U.N. envoy to Libya says that despite strains caused by the heavy fighting around Libya, the delegations to the peace negotiations are still talking and could agree on proposals by Monday.

Bernardino Leon told reporters on Sunday the fighting over the weekend around Tripoli had threatened talks and nearly caused the delegations to leave this Moroccan resort where they have been meeting intermittently for the past three weeks.

Leon himself will be leaving for Brussels on Monday for more talks, but the delegations representing Libya's rival parliaments in Tripoli and Tobruk will remain to work on documents to form a unity government and security arrangements.

Leon said the U.N. and European countries were seeking to expedite talks amid the rise of Islamic State extremists in the war-torn country.