Add endianess checking.