New package generation code