Fixed printing and reset commands.