Restore script functionality.