Just about finished the flow of input