Did you just come here to ask if your code would work without even testing it once yourself? That's kind of lazy.
Anyway, regarding the delayed second execution, what you did there is the right idea, but you got a problem in there that will prevent it from working:
is just a reference to the function. You want to execute it, so this line will have to be
Same goes for
In order to make it work, you could write it like this:
but this is not recommended. Putting executable code into strings is generally bad style. Rather do it like this: