Modified grep statement to include hostnames