This is over-general; we only need to handle the case of a single alert