Added the getting and excuting functions for plugins.