Added Lua function for finding nearest assembly