Update SMAPlugin.m