Implement logic for packaging