Then probably, ReadLine() is not returning what you and the function expect.

After the line:
$CurrentPC = ReadLine(4)

add the Lines:
'CurrentPC = [' + $CurrentPC + ']' ?
Get $_
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.