Code for rBlocks experiements