Bringing flexibility to pharmaceutical manufacturing