Added compression options to writeNBT