Bayesian Stopping Rule