Block type detecting