Output index should be smaller than 5, the number of outputs.