Data streaming code.