Added an option for the plugin to control index appending