This is the code from the plugin GunsAPIExample