Did a bit of endianness manipulation