Add publish to vlog funciton.