Modified version of Pierre Mavro's packer-wheezy