Parametrized the plugin return type functions.