First working version of plugin