Got rid of all endian conversion. It's not needed.