         } 
         else {
               //Format Values
-              var states = String(format: "%5d", z80.Tstates)
+              var states = String(format: "%5d", Tstates)
               var addressStr = String(format: "%04x", address)
               var combinedStr = states + " PC " + addressStr + "\n"
 

        var readByte : UInt8 = UInt8(address >> 8)

        //Format Values
        var states = String(format: "%5d", z80.Tstates)
        var addressStr = String(format: "%04x", address)
        var readStr = String(format:"%02x", readByte)
        var combinedStr = states + " PR " + addressStr + " " + readStr + "\n"

            if (address & 0xc000) == 0x4000{
                for index in 0...2{
                    //Format Values
                    var states = String(format: "%5d", Tstates)
                    var addressStr = String(format: "%04x", address)
                    var combinedStr = states + " PC " + addressStr + "\n"

