Use hostname variable instead of hardcoding it.