Reworked the spitting of the scripts