More advanced version of the manufacture script.