Improvements on uart settings