Make wrap a free function.