Added support for big endian files