Accumulate visited versions.

Closes #15.