Motor scripts repaired