Seam script for plugin