@anwarmochtar Welcome to the forum..
Bots are fun.. ![]()
Worked on one not too long ago, fraught with delays..
Taking them out usually requires developing a state machine or two..
Take a gander here.. run two loops at the same time..
compare original code to the code with delays removed..
Same principal can be applied you your code base..
have fun.. ~q