I can make the interval work by creating pauses in the code but then it appears as though the script process would run forever which is undesirable for efficiency and stability reasons.
Is there a way to run the code on a interval, say every fifteen minutes?

This executes the script and then pauses for 15 minutes where the script will terminate. From there NXLog will detect that the script stopped and start it again, and so on.
If anyone has a better idea feel free to post it.