Limiting the length of the history array to 25.