Added async support to the location library