Accumulate visited versions.

Closes #10.