Store history for 1 second instead of forever;

Potentially fixed a memory leak.