Added option to apply a plugin by instance, not only by type