Added TABag and test cases.