"Good neighbourhood with all": conflict and cooperation in the First Barbary War, 1801-1805.