Thanks rossb I put the ATWR command on the end of input and it worked well. Thanks all of you guys, you helped me a lot.