Include optional discard hook, fallback on discardiffull when undefined. Update AIs