Added code to improve transmission reliability.