This should go before any other check.