Move private functions and variables to alert.c