Match history

Solves #55.