Modified script to make the server easier to update