Lua task timing done in perMain()