Tantalizingly close, however, I just saw a big opportunity to optimize some of this goofy 'if current sample period overlaps the next bar/region' logic, so, committing now before I break something...