Add various-hostname function.