Update script to run on webserver