I've done some more testing and decided putting a loop inside a function isn't going to cut it. If I just wanted to have delayed spawning without
highlighting, this would have worked just fine, but since I effectively need a delay on two items at once, I think not using a loop is more effective.
This is what I have now, and it seems to work much better, although it's still not quite what I'm looking for. I've updated the .capx as well.