Added some endian handling for big endian systems