Added changing the blocks to gems