Added endianess swap