I have made changes to make the code useable for the rsds zipping.