Repaired broken script