Modified the getLocation Lua function sligtly