Added rx flush and changed response timeout to 2000 milliseconds.