Added activation check for plugins