Adding loop and stream assignment.