Finished plugin functionality