Add batch_ids param to message storing methods.