Add limit argument to history