Working on input for register and output