Improve the combine script