Check dimensions