Some helper functions for packaging.