Messed up timing with api causing to alert every minute.  Fixed
Added debug flag