Updated to allow for Arduino to reboot after opening serial port