Source: https://www.cantab.net/users/michael.stubbs/articles/stubbs-2003-chains.pdf