Some tools to help build the block mapping machinery