Add plugin function.