He was noticed and befriended by two of Britain's foremost mathematicians – Edmund Halley and Sir Isaac Newton – and was elected a fellow of the Royal Society in 1711. He later became the editor and publisher of many of Newton's manuscripts and built up an extraordinary library that was one of the greatest collections of books on science and mathematics ever known, and only recently fully dispersed.[12]