A little bit of performance logging and a possible small improvement for blocks().