added InstanceHasAnimation parameter