Use filter <  instead of takeWhile !=  to scrub the history but this assumes the IDs are in a logical order