Rewrite for new SpoutAPI changes