WIP C implementation of Packager