This is getbaudrate function