#11 - Reduce number of threads created

Changed made by bpapez to reduce the number of threads created by the plugin.