Renamed serialConnect and serialDisconnect functions