Proper way to communicate over serial