Moved serial ID to connect() function.