Add :both endian option