Added history api