Do you have 3 Messenger opened when importing the script?
I think when a script is imported, it'll be initialized to every Messenger.
I'm not sure about this, though, but I'm guessing that's why it's behaving that way.
I don't think I need the delay time anymore, since it has a better sign-in method.
Thank you for your support