Added a bulk read repeat counter, deleted some dead code, and cleaned up some formatting.