Restored cumsum on Line