Source: https://luiscruz.github.io/papers/cruz2017leafactor.pdf