Expose prepareMessage