Accepting fucntion returning streams