Alternative, equally broken approach.
Fixed, rudimentary zip export. Still needs work...