Added a bar tagger and bar tests.