Avoid Reaching the History Limit