Cleaning up packet reading/endianness.