Added limit to getHistory()