Removed write statements, set correct connection number