Changed script endpoint to hostname.