Make hostid more convenient