Add endian checking and methods.