Added a flag for big endian outputting