I am struggling to write the logic for CAN message timeout. I am trying to avoid global variables, i have added the attachment, please advise me a good method. I also need to check the message timeout in other functions. Do i need to use global variable?