Replaced hostname with $HOSTNAME