Exported createPluginMap function