Added timeouts for all tx/rx functions.