Add offset support and make zip file order deterministic