Preparement for publishing in a new thread.