Naive implementation of history sync