Nit: lengthInputOutput seems confusing to me.  Maybe lengthInputResult?