Added a maximum history length so we don't run out of space and/or memory. Limit is 1000 videos in the history for now.