Andy: Add the recursive formula for #825.