Fixed the return of output parameters from cli. Separated IO parameters into input and output.