Make generic zip method.