Serial speed and syncronization problem

Can you post your revised code? I'll try to test it on my machine.