Made Plugin Threadsafe.