Finish Brownian motion algorithm