Implements get plugin instance, fixes profile bug.