Rewrite code for serial communication