Thanks for letting me read this wonderful piece.Thanks @brson again.
There are two very small points that I am not sure it is true or not.
Is this thin a typo (think)? means that you were still lack of pubkey?
According to the doc,it seems that the number is 5000 .