Added the getLocation utility