Modified document to include the final alert message including the total