Prepare for publish.