Added function splitStreamPrioritising.