Some extra functionality for creating the pickled libraries and such...