Adding inputAdapt and outputAdapt methods