Add tuple replaying mechanism. (Initial commit)