Add assertion handling code.