Set soldFlag on class and in script