Added global limit to history array