This could have to do with the communication is slow, which can be caused by the long scan time.
You are not really answering the questions, so that makes it difficult to help you.
Is this a new program, an old program, or an old program that has been modified ?
Are you the original programmer ?
What is the code with indirect addressing supposed to achieve ?