Added assert to ALACRITY plugin write code