Implement flex-pack:distribute