How do I manually write an EC stream?