Use the result type in STREAMs

Signed-off-by: David Scott <dave.scott@citrix.com>