Finished the serial code I think