Changed hostname check to LocalHostName