Add utilities for block type detection