Make start/stop bit detection more robust. Still needs work.