Added variable baud rate detection