core.wait() now accepts optional delay parameter in ms. Passed this delay the task is woken up if no event woke the task before. Lua documentation was updated.