Making sure that we use a unique document id for successful messages to
avoid clashing with failures. Closes #144