Add preconfigured alert function