Add options to dictate the endianness of output data, per Tarek.