Improving the serial communication. Not tested yet.