Changed way to get name of plugin.