Converted smelter script.