changed the history from a truthy array to a datediff based array. Works much better and will have a longer history.