Add in debugging to resolve counter issues
Playing with eunit, the code coverage is pretty good.