updated timer to use spam flag