First stab at history trimming