First working version for plugin generator.