I did an integral change for alert -> error (which calls alert for now), but this might need a third function like notify.