Try:
if you’re adding it dynamically:
The SMC is static by default, attaching it to a non-static component will throw a warning.
static