My modifications to the putty code.