Changed so that IsDirty flag remains false when loading script from file