 Later at the age of nineteen "he was master of a packet-ship sailing between London and Boston, and at twenty-seven was attacked off Tunis by Algerine pirates, not only beating them back in fair fight, but recapturing two American vessels which had been seized.