I just have glanced to the pseudo-code. I also don't see where this value comes from. Did you tried to tweak the value?
I imagine that the condition is related to the convergence of erf function. Thus, 3 or 4 can work as well. 
If this is true, it can be in the parameters.