Removed 'drain' from serialport because it was causing problems