WIP C implementation of the Packager