Repaired script generetor.