Add history transaction
Fix threshold