Signficant improvements to the script that helps the site function a little more reliably