Add history recording to injection pattern.

Implements History Manager #30