Move history_limit to class variable