Add functions for packing with resource files.