Added if-statement to check for one or multiple streams to choose from.