Update alert code