Working in the algorithm to filter history results...