Deploying the function