Smart factory investment at critical stage