Fixed so it used the hostname constant