Adding threshold branches