Make plugin function with or without spout