Comment 38 for bug 538256

@splashis:
You can still improve the script. I also did some fine tuning on step size after I posted the script here. A perfect solution for step size would be a logarithmic approach, but it will still not satisfy in sense of response speed.