Add makeOuterId method.