Proof of concept for doing pre-emptive multitasking with lua 5.2