More alert buffer; fixing conflicting stats in equations and small optimization.