The Pirate Code of Captain Bartholomew Roberts is one of the best surviving examples of the Articles of Agreement put together by pirates. Roberts success in capturing over 400 ships in a three year time period might be as a result of the discipline instilled into the men by this strict code, which helped to keep the running of the ship smooth and fair, to avoid mutiny, and prevent other problems on board the ship. He probably based the articles on those of his predecessor Howell Davis.