Remove the use of output array.