Hello again atomski,

I think that the line

IF Ser_Data <> 0 THEN

is not necessary. Try to remark it and run the code again.