Refactored blockType to block