Added function to save external shared collections