Add support for endianness