Exposed getSpeed() to Lua.