Don't use a while loop. Just put the code inside the alias, and have the timer "self-call" the alias from inside it.