Finished backend of plugin