Fleshed out streaming encoding a bit