Add history limit