Spike code for zipping and unzipping